package com.yjd.comm.bank.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.bank.model.BankModel;

/**
 * <b>description</b>：用户银行卡业务接口<br>
 * <b>time</b>：2017-06-26 13:25:47 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IBankService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public BankModel insert(BankModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(BankModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param user_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long user_id) throws Exception;


	/**
	 * 用户绑定银行卡
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int bindingBank(BankModel model)throws Exception;

}
